From 5bb355f06f8b7b9914d13caec7c9a6215c7c35fb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Timm=20B=C3=A4der?= Date: Fri, 30 Jun 2017 12:40:40 +0200 Subject: [PATCH] scale: Fix mark indicator allocations --- gtk/gtkscale.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk/gtkscale.c b/gtk/gtkscale.c index 75fd355735..4ee94114b6 100644 --- a/gtk/gtkscale.c +++ b/gtk/gtkscale.c @@ -432,7 +432,7 @@ gtk_scale_allocate_mark (GtkGizmo *gizmo, if (orientation == GTK_ORIENTATION_HORIZONTAL) { - indicator_alloc.x = mark->stop_position - indicator_width / 2; + indicator_alloc.x = indicator_width / 2; if (mark->position == GTK_POS_TOP) indicator_alloc.y = allocation->y + allocation->height - indicator_height; else @@ -446,7 +446,7 @@ gtk_scale_allocate_mark (GtkGizmo *gizmo, indicator_alloc.x = allocation->x + allocation->width - indicator_width; else indicator_alloc.x = allocation->x; - indicator_alloc.y = mark->stop_position - indicator_height / 2; + indicator_alloc.y = indicator_height / 2; indicator_alloc.width = indicator_width; indicator_alloc.height = indicator_height; } -- 2.30.2